#ifndef __FLASH_H
#define __FLASH_H
#include "gd32l23x.h"
#include "gd32l23x_fmc.h"

void flash_erase(uint32_t address);
void flash_write(uint32_t address,uint32_t *data,uint32_t len);
void flash_read(uint32_t address,uint32_t *data,uint32_t len);

int32_t flash_write_word(uint32_t address, uint32_t data);
void flash_read_word(uint32_t address,uint32_t *data,uint32_t len);
#endif
